
workspace('main.workspace',
	grantedRoles:[
	  'administrator',
	  'staff-manager'
	]) {
	  filterModule('User.module',
		  component:'User',
		  moduleView:'User.table',
		  detailView:'User.edit.view',
		  startup:'filterModuleStartup',
		  pageSize:20)
	  
	  filterModule('Equipments.module',
		  icon:'equipments.png',
		  component:'Equipments',
		  moduleView:'Equipments.view',
		  detailView:'Equipments.edit.view',
		  startup:'filterModuleStartup',
		  pageSize:10)
	  
	  filterModule('Lending.module',
		  icon:'lending.png',
		  moduleView:'Lending.view',
		  detailView:'Lending.edit.view',
		  component:'Lending',
		  startup:'filterModuleStartup',
		  pageSize:10)
	  
	  filterModule('Maintenance.module',
		  icon:'maintenance.png',
		  moduleView:'Maintenance.view',
		  detailView:'Maintenance.edit.view',
		  component:'Maintenance',
		  startup:'filterModuleStartup',
		  pageSize:10)
	  
	  filterModule('ConsumerGoods.module',
		  icon:'consumer_goods.png',
		  component:'ConsumerGoods',
		  moduleView:'ConsumerGoods.view',
		  detailView:'ConsumerGoods.edit.view',
		  startup:'filterModuleStartup',
		  pageSize:10)
	  		
	}


bean 'viewFactoryBase', parent:'abstractViewFactory',
    custom: [
      defaultActionMapRenderingOptions:'LABEL_ICON'
    ]

controller 'ggemma.management.name',
    icon:'icon.png',
    context:'ggemma.management',
    language:'pt',
    workspaces:[
	  'main.workspace'
    ]
	
action 'filterModuleStartup',
	class:'org.jspresso.framework.application.frontend.action.FrontendAction',
	wrapped:'initModuleFilterAction',
	next:'queryModuleFilterAction'
